package com.fcscs.cservice.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fcscs.cservice.dao.RestaurantPictureDao;
import com.fcscs.cservice.domain.RestaurantPicture;
import com.fcscs.cservice.service.RestaurantPictureManager;

@Service("restaurantPictureManager")
public class RestaurantPictureManagerImpl implements RestaurantPictureManager {
	
	@Autowired
	private RestaurantPictureDao dao;

	@Override
	public <E extends RestaurantPicture> E get(Class<E> cls, long id) {
		return dao.get(cls, id);
	}

	@Override
	public RestaurantPicture get(long id) {
		return dao.get(id);
	}

	@Override
	public Boolean delete(RestaurantPicture loc) {
		return dao.delete(loc);
	}

	@Override
	public void permDelete(RestaurantPicture loc) {
		dao.permDelete(loc);
	}

	@Override
	public <E extends RestaurantPicture> E save(E loc) {
		return dao.save(loc);
	}

	@Override
	public List<RestaurantPicture> getRestaurantPictures(long orgId, Long propId, long restaurantId) {
		return dao.getRestaurantPictures(orgId, propId, restaurantId);
	}


	
}
